#!/bin/sh
set -e
+echo ""
echo "This needs a local copy of cargo-vendor, and the following packages:"
echo "python-dulwich python-pytoml devscripts"
+echo ""
TMPDIR=`mktemp -d`
echo "Using '${TMPDIR}'..."
BOOTSTRAP_PY=$(find "${PWD}" -name bootstrap.py -type f)
DEPS_FILTER=$(find "${PWD}" -name deps-tarball-filter.txt -type f)
-# Download cargo tarballs
+# Download cargo tarball
uscan --rename ${USCAN_ARGS} --force-download --destdir "${TMPDIR}/"
# Extract cargo source
cd cargo
# Trim the list of dependencies
+echo ""
+echo "Applying clean-cargo-deps.patch... If this fails, remember to refresh the patch first!"
patch -p1 < ${WORKDIR}/debian/patches/clean-cargo-deps.patch
# Download build-deps via cargo-vendor